

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>The activity module content &mdash; buzzRTShare v1.0.1 documentation</title>
    <link rel="stylesheet" href="_static/default.css" type="text/css" />
    <link rel="stylesheet" href="_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '',
        VERSION:     '1.0.1',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="_static/jquery.js"></script>
    <script type="text/javascript" src="_static/underscore.js"></script>
    <script type="text/javascript" src="_static/doctools.js"></script>
    <link rel="top" title="buzzRTShare v1.0.1 documentation" href="index.html" />
    <link rel="next" title="The callback module content" href="callback.html" />
    <link rel="prev" title="Welcome to buzzRTShare’s documentation!" href="index.html" /> 
  </head>
  <body>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="callback.html" title="The callback module content"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="index.html" title="Welcome to buzzRTShare’s documentation!"
             accesskey="P">previous</a> |</li>
        <li><a href="index.html">buzzRTShare v1.0.1 documentation</a> &raquo;</li> 
      </ul>
    </div>  

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="module-activity">
<span id="the-activity-module-content"></span><h1>The <cite>activity</cite> module content<a class="headerlink" href="#module-activity" title="Permalink to this headline">¶</a></h1>
<div class="section" id="the-google-buzz-activity-class">
<h2>The Google Buzz <tt class="docutils literal"><span class="pre">Activity</span></tt> class<a class="headerlink" href="#the-google-buzz-activity-class" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="activity.Activity">
<em class="property">class </em><tt class="descclassname">activity.</tt><tt class="descname">Activity</tt><big>(</big><em>content=None</em>, <em>originalLink=None</em><big>)</big><a class="headerlink" href="#activity.Activity" title="Permalink to this definition">¶</a></dt>
<dd><p>This class represent a Google Buzz Activity.
Return an activity object, content and originalLink are required.</p>
<dl class="attribute">
<dt id="activity.Activity.content">
<tt class="descname">content</tt><a class="headerlink" href="#activity.Activity.content" title="Permalink to this definition">¶</a></dt>
<dd><p>This is the content of a buzz.
It&#8217;s the pure text/html present into the activity.</p>
</dd></dl>

<dl class="method">
<dt id="activity.Activity.getAttachs">
<tt class="descname">getAttachs</tt><big>(</big><big>)</big><a class="headerlink" href="#activity.Activity.getAttachs" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the list of registered attachments.</p>
</dd></dl>

<dl class="method">
<dt id="activity.Activity.getGeoPoints">
<tt class="descname">getGeoPoints</tt><big>(</big><big>)</big><a class="headerlink" href="#activity.Activity.getGeoPoints" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the registered geoPoints.</p>
</dd></dl>

<dl class="method">
<dt id="activity.Activity.getShortUrl">
<tt class="descname">getShortUrl</tt><big>(</big><em>longurl</em>, <em>bitlyLogin=None</em>, <em>bitlyApiKey=None</em><big>)</big><a class="headerlink" href="#activity.Activity.getShortUrl" title="Permalink to this definition">¶</a></dt>
<dd><p>Return a short url version.
If bitlyLoging and bitlyApiKey are passed it uses the api.j.mp service
otherwise it uses the is.gd service.
Return None in case of error.</p>
</dd></dl>

<dl class="method">
<dt id="activity.Activity.getSource">
<tt class="descname">getSource</tt><big>(</big><big>)</big><a class="headerlink" href="#activity.Activity.getSource" title="Permalink to this definition">¶</a></dt>
<dd><p>Return the source string. If empty return None.</p>
</dd></dl>

<dl class="attribute">
<dt id="activity.Activity.originalLink">
<tt class="descname">originalLink</tt><a class="headerlink" href="#activity.Activity.originalLink" title="Permalink to this definition">¶</a></dt>
<dd><p>This is the original link of the buzz.</p>
</dd></dl>

<dl class="method">
<dt id="activity.Activity.parseContent">
<tt class="descname">parseContent</tt><big>(</big><big>)</big><a class="headerlink" href="#activity.Activity.parseContent" title="Permalink to this definition">¶</a></dt>
<dd><p>Parse content and remove the html formatting,
maintain only the pure text.</p>
</dd></dl>

<dl class="method">
<dt id="activity.Activity.removeNewLine">
<tt class="descname">removeNewLine</tt><big>(</big><big>)</big><a class="headerlink" href="#activity.Activity.removeNewLine" title="Permalink to this definition">¶</a></dt>
<dd><p>Remove all the new line characters from the self.content.
Change the self.content in an only row.</p>
</dd></dl>

<dl class="method">
<dt id="activity.Activity.setAttach">
<tt class="descname">setAttach</tt><big>(</big><em>type</em>, <em>title</em>, <em>link</em><big>)</big><a class="headerlink" href="#activity.Activity.setAttach" title="Permalink to this definition">¶</a></dt>
<dd><p>Add a dictionary to the attachments list</p>
</dd></dl>

<dl class="method">
<dt id="activity.Activity.setGeoPoints">
<tt class="descname">setGeoPoints</tt><big>(</big><em>lat</em>, <em>long</em><big>)</big><a class="headerlink" href="#activity.Activity.setGeoPoints" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the geoPoints attribute with a tuple of lat and long.</p>
</dd></dl>

<dl class="method">
<dt id="activity.Activity.setSource">
<tt class="descname">setSource</tt><big>(</big><em>source</em><big>)</big><a class="headerlink" href="#activity.Activity.setSource" title="Permalink to this definition">¶</a></dt>
<dd><p>Set the source string of the crossposted activity.</p>
</dd></dl>

<dl class="method">
<dt id="activity.Activity.unescapeContent">
<tt class="descname">unescapeContent</tt><big>(</big><big>)</big><a class="headerlink" href="#activity.Activity.unescapeContent" title="Permalink to this definition">¶</a></dt>
<dd><p>Returns the given HTML with ampersands, quotes and carets decoded.
In other word it replaces the reserved characters of the HTML with their values.</p>
</dd></dl>

</dd></dl>

</div>
<div class="section" id="the-parsecontent-class">
<h2>The <tt class="docutils literal"><span class="pre">ParseContent</span></tt> class<a class="headerlink" href="#the-parsecontent-class" title="Permalink to this headline">¶</a></h2>
<dl class="class">
<dt id="activity.ParseContent">
<em class="property">class </em><tt class="descclassname">activity.</tt><tt class="descname">ParseContent</tt><big>(</big><em>data</em><big>)</big><a class="headerlink" href="#activity.ParseContent" title="Permalink to this definition">¶</a></dt>
<dd><p>Extend HTMLParser.HTMLParser.
Parse an HTML string in input and puts the pure text, without the html
formatting, in the attribute content.</p>
<dl class="method">
<dt id="activity.ParseContent.handle_data">
<tt class="descname">handle_data</tt><big>(</big><em>data</em><big>)</big><a class="headerlink" href="#activity.ParseContent.handle_data" title="Permalink to this definition">¶</a></dt>
<dd><p>Puts the parsed content into the content variable.
Override the parent handle_data function, it is called from the parent
during the parsing when data is found</p>
</dd></dl>

</dd></dl>

</div>
</div>


          </div>
        </div>
      </div>
      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="index.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">The <cite>activity</cite> module content</a><ul>
<li><a class="reference internal" href="#the-google-buzz-activity-class">The Google Buzz <tt class="docutils literal"><span class="pre">Activity</span></tt> class</a></li>
<li><a class="reference internal" href="#the-parsecontent-class">The <tt class="docutils literal"><span class="pre">ParseContent</span></tt> class</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="index.html"
                        title="previous chapter">Welcome to buzzRTShare&#8217;s documentation!</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="callback.html"
                        title="next chapter">The <cite>callback</cite> module content</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="_sources/activity.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="search.html" method="get">
      <input type="text" name="q" size="18" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="callback.html" title="The callback module content"
             >next</a> |</li>
        <li class="right" >
          <a href="index.html" title="Welcome to buzzRTShare’s documentation!"
             >previous</a> |</li>
        <li><a href="index.html">buzzRTShare v1.0.1 documentation</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2010, Giuseppe Buzzanca (PiDy) &lt; giuseppebuzzanca@gmail.com &gt; .
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.4.
    </div>
  </body>
</html>